home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 3: CDPD 3
/
Almathera Ten on Ten - Disc 3: CDPD3.iso
/
ab20
/
ab20_archive
/
languages
/
assembly
/
powervisor_113.lzh
/
docs
/
Aliases
next >
Wrap
Text File
|
1992-02-06
|
8KB
|
306 lines
*--------------------*
* Reference: Aliases * Thu Feb 6 15:47:25 1992
*--------------------*
============================== Introduction ==================================
This reference file contains all aliases defined in s/PowerVisor-startup
and s/pv/ExtraAliases.
=================================== why ======================================
WHY
Definition : help e\(error)
Defined in : s/PowerVisor-startup
This alias gives some additional help for the last error.
Related commands: help
=================================== lfd ======================================
LFD <library name>
Definition : loadfd [] fd:[]_lib.fd
Defined in : s/PowerVisor-startup
This alias loads a ¹fd-file for a library. It is simply a shorthand
notation.
Example :
< lfd exec <enter>
instead of
< loadfd exec fd:exec_lib.fd <enter>
Related commands: loadfd
=================================== bin ======================================
BIN <number>
Definition : bin = {bin8 ([])>>8;bin8 ([]);print \0a}
bin8 = print \(([])>>7&1)\(([])>>6&1)\(([])>>5&1)\(([])>>4&1)
\(([])>>3&1)\(([])>>2&1)\(([])>>1&1)\(([])&1)
Defined in : s/PowerVisor-startup
This alias shows the binary representation of the 16 least significant
bits of <number>.
Example :
< bin 1234 <enter>
> 0000010011010010
=================================== cmd ======================================
CMD <cli command line>
Definition : {rc="[]";rx s:pv/cmd}
Defined in : s/PowerVisor-startup
You can use this alias to execute Cli commands from within PowerVisor.
The output will appear on the default logical window. This alias uses
a unique temporary file in 'T:'.
Warning! You can't use Cli commands that ask for input.
Example :
< cmd dir dh0: all <enter>
> ...
=================================== asm ======================================
ASM <address>
Definition : {rc=[];rx s:pv/assem}
Defined in : s/PowerVisor-startup
This alias calls a simple assembler written in ARexx. See s:pv/assem.pv for
more info about the assembler. Stop the assembler with an empty input line.
================================= mstack =====================================
MSTACK <task> <microseconds>
Definition : {rwin 1;r 5 {home;d getstack()};stack []}
Defined in : s/PowerVisor-startup
This alias is equivalent to the 'stack' command. The difference is that
this alias first opens the ³refresh logical window with one visible line and
installs a ²refresh command to display the maximum stack usage two times
per second (5 ¹IntuiTicks).
Example :
< mstack workbench 10000 <enter>
Related commands: stack refresh
Related functions: getstack
=================================== at =======================================
AT <command string> <code string> <qualifier string>
Definition : attach [1] co([2]) qu([3]) e
Defined in : s/PowerVisor-startup
This alias ¹attaches a command to a key (makes a macro). The advantage of
this alias is that you can use names for the ¹code and ¹qualifier of the
key instead of numbers.
Note that you have to define the 'co' and 'qu' functions in order to
use this alias (this is already done in s/PowerVisor-startup).
Note that the 'co' function does not work perfectly in ²AmigaDOS 1.3. Only
use the 'co' function (and thus the 'at' alias) for special keys
('enter', 'esc', 'up', ...) and not for normal keys ('a', '3', ...).
The following code strings are supported :
f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, esc, enter, ret, up, down,
right, left, del, help, tab, numl, scrl, prtsc, home, end, nup, nleft,
nright, ndown, pgup, pgdn, ins, ndel
All other strings are interpreted as one char only (you may only use one
of the above strings if you have AmigaDOS 1.3)
The following qualifier strings are supported :
lshift, rshift, ctrl, lalt, ralt, lcmd, rcmd
Example :
< at 'help commands' help ralt <enter>
This command attaches the 'help commands' command to the <right-alt>+<help>
key.
Related commands: attach remattach
================================== opwin =====================================
OPWIN <window name>
Definition : {-openpw [] 0 0 300 200;-openlw [] [] 80 40}
Defined in : s/PowerVisor-startup
This alias opens a ²physical window <window name> with size 300x200
and opens a ²logical window with the same name in this physical window.
Related commands: openpw openlw
================================== fact ======================================
FACT <number>
Definition : fact = disp {_fact []}
_fact = void if(([])==1,1,{_fact ([])-1}*([]))
Defined in : s/pv/ExtraAliases
This alias computes the facultaty of its argument. It is an example of
how to use ²recursive aliases.
Example :
< fact 5 <enter>
> 00000078 , 120
Related commands: disp void
Related functions: if
================================= fdebug =====================================
FDEBUG
Definition : script db
Defined in : s/PowerVisor-startup
This alias installs the ²fullscreen debugger for you. If the debug logical
window is not open it is opened ('dwin' command). The number of instructions
in the disassembly is set to 5 ('prefs debug' command). Some keys are
assigned to commands (<lcmd> is left amiga key) :
<ctrl>+z ³singlestep one instruction
<ctrl>+y singlestep one instruction
<ctrl>+a ²set breakpoint after this instruction and execute
<ctrl>+s ³skip current instruction
<ctrl>+r ²run program until a breakpoint hit occurs
<ctrl>+x ³halt running program
<ctrl>+b set/reset a temporary breakpoint at the top of the
³debug logical window
<ctrl>+t singlestep but ²skip BSR and JSR instructions
<lcmd>+u ²trace until ...
<lcmd>+b trace until a ³change of programflow occurs (branch, ...)
<rcmd>+a set debug window start address ...
<rcmd>+b set ²permanent breakpoint ...
Note that these keys can differ when you use another ²default keymap (like
'azerty' or 'qwertz'). Change the 'db' script if you want to use other keys.
'fdebug' redefines itself. After the fullscreen debugger is installed you
can use 'fdebug' to remove the fullscreen debugger. 'fdebug' is a toggle.
Note that the 'db' script (located in s/pv) works best when called
from within the alias. Never execute this script directly.
Related commands: debug trace break
================================= salias =====================================
SALIAS <commandline>
Definition : {print \({_fl={pv 48 ·Å[]Å}},%s)\0a;v free(_fl);remvar _fl}
Defined in : s/PowerVisor-startup
With this alias you can show the commandline how it would look like
after ²alias substitution. This is very useful for ²debugging aliases.
If an alias does not work well you can use this alias to see what
actually gets executed.
Example :
< alias x '[3][2][1] testing []' <enter>
< salias x i r p last <enter>
> pri testing i r p last
Related commands: print pvcall
=================================== cu =======================================
CU [<number of lines>]
Definition : u lastmem() []
Defined in : s/PowerVisor-startup
This alias is equivalent to the 'unasm' command. The only difference is that
you can specify the number of lines to disassemble without having to specify
the starting address.
Related commands: unasm
=================================== cm =======================================
CM [<number of bytes>]
Definition : m lastmem() []
Defined in : s/PowerVisor-startup
This alias is equivalent to the 'memory' command. The only difference is that
you can specify the number of bytes to view without having to specify
the starting address.
Related commands: memory
=================================== vu =======================================
VU [<number of bytes>]
Definition : view lastmem() []
Defined in : s/PowerVisor-startup
This alias is equivalent to the 'view' command. The only difference is that
you can specify the number of bytes to view without having to specify
the starting address.
Related commands: view